package com.park.web.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.park.web.base.baseOperation.BaseService;
import com.park.web.dao.basSystemUserMapper;
import com.park.web.model.domain.basSystemUser;
import com.park.web.model.dto.basSystemUserDto;
import com.park.web.service.basSystemUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class basSystemUserServiceImpl extends BaseService<basSystemUser> implements basSystemUserService {

    @Autowired
    basSystemUserMapper ibasSystemUserMapper;

    @Override
    public basSystemUser UserLogin(basSystemUserDto entity) {
        return ibasSystemUserMapper.UserLogin(entity);
    }

    public PageInfo<basSystemUser> queryWithPage(basSystemUserDto entity) {
        PageHelper.startPage(entity.getPage(), entity.getPageSize());
        var actionList = ibasSystemUserMapper.queryWithPage(entity);
        return new PageInfo<>(actionList);
    }
}
